<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="keywords" content=""><!--SEO关键字-->
<meta name="description" content=""><!--SEO描述-->
<link rel ="" href=""><!--选项卡图标-->
<title></title>
<link rel="stylesheet" href="/css/base.css">
<link rel="stylesheet" href="/css/common.css">
<link rel="stylesheet" href="/css/style.css">
<script src="/js/jquery-1.7.2.min.js"></script>
<script src="/js/script.js"></script>
<script src="/js/responsiveslides.min.js"></script>
<!--[if ie 6]>
<link rel="stylesheet" href="css/ie6.css">
<script type="text/javascript" src="js/DD_belatedPNG.js" ></script>
<script type="text/javascript">
DD_belatedPNG.fix('.png');/*在需要png透明的元素里面加上.png样式即可（class="png"）*/
</script>
<![endif]-->
</head>

<body class="bg_img">
	<div class="header h100 w960 bc"><?php head();?></div>

	<div class="w960 bc oh mt20">
		<div class="user_nav_wrap oh fl">
			<p class="f14 fb chot common_bg_color1 p10">我的订单</p>
			<a href="/users/order" class="f12 db p10 pl30 c777 no_url">交易订单</a>
			<a href="/users/complete" class="f12 db p10 pl30 c777 no_url">已完成订单</a>
			<a href="/users/close" class="f12 db p10 pl30 c777 no_url">已关闭订单</a>
			<p class="f14 fb chot common_bg_color1 p10">我的售后服务单</p>
			<a href="/users/change" class="f12 db p10 pl30 c777 no_url">换货单</a>
			<a href="/users/refund" class="f12 db p10 pl30 c777 no_url">退款单</a>
			<p class="f14 fb chot common_bg_color1 p10">我的个人信息</p>
			<a href="/users/address" class="f12 db p10 pl30 c777 no_url">收货地址</a>
			<a href="/users/password" class="f12 db p10 pl30 c777 no_url">修改密码</a>
		</div><!-- user_nav_wrap end -->
		<div class="user_goods_form oh fr">
			<?php
			for($n=0;$n< count($order);$n++){
			?>
			<table class="goods_cart_from mb30">
				<tr>
					<td colspan="4" class="">
						<p class="f12 c777 pl20 ml10"><span class="fl">订单号： <span><?php echo $order[$n]['orders_id']?></span></span><span class="fr pr20 mr10">成交日期：<span><?php echo $order[$n]['create_time']?></span></span></p>
					</td>
				</tr>
				<tr>
					<th>商品名称</th>
					<th>数量</th>
					<th>价格</th>
					<th>合计</th>
				</tr>
				<?php 
					for($m=0;$m< count($order[$n]['product']);$m++){
						$p_price = $order[$n]['product'][$m]['num']*$order[$n]['product'][$m]['price']
					?>
				<tr>					
					<td><p class="goods_choice"><a target="_blank" href="/goods/<?php echo $order[$n]['product'][$m]['p_id'];?>"><img src="<?php echo $host.'/'.$order[$n]['product'][$m]['path1']?>" width="70" height="80" alt="" class="fl"></a><a href="/goods/<?php echo $order[$n]['product'][$m]['p_id'];?>" class="fl no_url c999" target="_blank"><?php echo $order[$n]['product'][$m]['name']?></a></p></td>
					<td><?php echo $order[$n]['product'][$m]['num']?></td>
					<td>￥<?php echo $order[$n]['product'][$m]['price']?></td>
					<td>￥<?php echo $p_price?></td>
				</tr>
				<?php }?>
				<tr>
					<td colspan="4" class="settle">
						<p class="fr fb f16 c777">商品金额合计（运费￥<?php echo $order[$n]['freight'];?>）：<span class="chot">￥<?php echo $order[$n]['total']+$order[$n]['freight']?></span></p><br><br><br>
						<p></p>
					</td>
				</tr>
			</table>
			<?php } ?>
		</div><!-- user_goods_form end -->

	<?php footer();?>
</body>
</html>